public class Explorer extends Unit {
	public boolean nearResource;

	public Explorer(int _id, Player player) {
		super(_id, player);
		this.player = player;
		this.type = 0;
		this.offensive = 1;
		this.defensive = 1;
		this.armor = 1;
		this.movement = 1;
		this.moveDelay = this.movement;
		this.health = 20;
		this.maxHealth = this.health;
		this.rawUpkeep = 4;
		this.upkeep = rawUpkeep * 3 / 4;
		this.nearResource = false;
	}

	public void getResource(Resource _r) {
		this.nearResource = false;
		
			if (_r.getSize() > 0) {
				this.nearResource = true;
				_r.deplete();
				this.player.incResource(_r.getType());
			}
		
	}
}
